package com.i72.governance.service.bean;

import java.util.ArrayList;
import java.util.List;


public class ServiceInfo {

    public ServiceInfo() {
        this.serviceNodes = new ArrayList<>();
    }

    private String serviceName;

    private List<ServiceNode> serviceNodes;

    public boolean removeALL() {
        this.serviceNodes = new ArrayList<>();
        return true;
    }

    public boolean remove(String ip, Integer port) {
        return true;
    }

    public boolean add(ServiceNode serviceNode) {
        return true;
    }

    public boolean exists(ServiceNode serviceNode) {
        return true;
    }

    public boolean exists(String ip, Integer port) {
        return true;
    }


    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public List<ServiceNode> getServiceNodes() {
        return serviceNodes;
    }

    public void setServiceNodes(List<ServiceNode> serviceNodes) {
        this.serviceNodes = serviceNodes;
    }
}
